import time


def save_tableName_to_file(file):
    # 传入多个文件名组成的列表
    # for path in file:
    #     with open("history.txt", "a+", encoding="utf-8") as f:
    #         f.write(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + "\n" + path + "\n")

    # 传入单个文件名
    with open("history.txt", "a+", encoding="utf-8") as f:
        f.write(file + "\t" + time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + "\n")
